Has anyone developed a test in dxl that return true if the user logged on is the DOORS Database Administrator?
|
Re: DOORS Administrator Logged On
Taken from one of my scripts - checks is the user is Administrator
User currUser = find()
UserClass currUserClass = currUser.class
if (stringOf(currUserClass) != "Administrator")
{
if (!confirm("Only the Administrator user should run this script - Confirm to continue?", msgWarning))
{
halt
}
}
|
Re: DOORS Administrator Logged On SystemAdmin - Tue Feb 09 08:44:08 EST 2010
Taken from one of my scripts - checks is the user is Administrator
User currUser = find()
UserClass currUserClass = currUser.class
if (stringOf(currUserClass) != "Administrator")
{
if (!confirm("Only the Administrator user should run this script - Confirm to continue?", msgWarning))
{
halt
}
}
|
Re: DOORS Administrator Logged On print "yes" else print "no" |